<?php
class FreemanController extends Forum_Controller_Action
{
    public function findAction()
    {
        $activation_model = new Model_User_ActivationCode();
        $code_row = $activation_model->find(3);
        echo '<pre>';    
        print_r($code_row);
        echo '</pre>';
        exit();
    }
    
    public function mailAction()
    {
        $this->layout->disableLayout();
        try {
            $mail = new Forum_Mail();
            $mail->setSubject('asdasdasd')
                ->setFrom('asd@asd.com') //@todo get from config
                ->setBody("asd")
                ->addRecipient("vova.yatsyuk@gmail.com")
                ->send();
        } catch (Exception $e) {
            echo $e->getMessage();
        }
    }
    
    public function getAllParamsAction()
    {
        $this->layout->disableLayout();
        
        print_r($this->_getAllParams());
    }
    
    public function getUserIdAction()
    {
        $this->layout->disableLayout();
        
        print_r(Model_User::getUserId());
    }
    
}